package com.jic.market.service;

import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.market.entity.CouponGoodsTemplate;
import com.jic.market.request.manager.coupon.template.CouponTemplateAddGoodsTriggerRequest;
import com.jic.market.request.manager.coupon.template.CouponTemplateDeleteGoodsRequest;

import java.util.List;

/**
 * 优惠券商品关联模版表
 *
 * @author : seven
 * @version : v1.0.0
 * @email : 774329481@qq.com
 * @since : 2020-03-03 01:44:17
 */
public interface CouponGoodsTemplateService {

    long insert(CouponGoodsTemplate couponGoodsTemplate);

    long delete(Long id);

    long update(CouponGoodsTemplate couponGoodsTemplate);

    CouponGoodsTemplate queryByPrimaryKey(Long id);

    List<CouponGoodsTemplate> query(CouponGoodsTemplate couponGoodsTemplate);

    PageResult<CouponGoodsTemplate> queryPage(CouponGoodsTemplate couponGoodsTemplate, Page pageQuery);


    public RestResult<Boolean> addCouponTemplateFromGoods(CouponTemplateAddGoodsTriggerRequest couponTemplateAddGoodsTriggerRequest);

    public RestResult<Boolean> deleteCouponTemplateGoods(CouponTemplateDeleteGoodsRequest couponTemplateDeleteGoodsRequest);
}